package com.hrprojectback.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum StatusEnum implements BaseEnum {
    SUCCESS(200, "成功"),
    ERROR(300, "失败"),
    STATUS_SHENG_XIAO_ERROR(301, "生效失败"),
    STATUS_SHENG_XIAO_SUCCEE(302, "生效成功"),
    STATUS_SHI_XIAO_ERROR(303, "失效失败"),
    STATUS_SHI_XIAO_SUCCEE(304, "失效成功"),
    FILE_NOT_EXIST(400, "文件不存在"),
    FILE_READ_ERROR(501, "文件读取失败"),
    FILE_WRITE_ERROR(502, "文件写入失败"),
    FILE_UPLOAD_ERROR(503, "文件上传失败"),
    TOKEN_NOT_EXIST(101, "token不存在，请重新登录"),
    TOKEN_INVALID(102, "token无效，请重新登录"),
    DATA_IMPORT_ERROR(504, "数据导入失败"),
    BATCH_DELETE_ERROR(505, "批量删除失败"),
    STAFF_NOT_EXIST(103, "没有此员工，请重新登录"),

    STAFF_STATUS_ERROR(104, "状态异常，请联系管理员"),
    STAFF_NOT_TOKEN_ERROR(105, "取不到token"),
    STAFF_NOT_EXIST2(106, "您所查询的员工不存在"),

    STAFF_NOT_EXIST3(113, "您所查询的部门不存在"),

    STAFF_NOT_EXIST4(114, "您所查询的角色不存在"),
    STAFF_IS_USER_SHENG_XIAO(107, "员工已生效，无需重复生效"),

    STAFF_IS_USER_SHI_XIAO(109, "员工已失效，无需重复失效"),
    STAFF_IS_DEPT_SHENG_XIAO(108, "部门已生效，无需重复生效"),
    STAFF_IS_DEPT_SHI_XIAO(110, "部门已失效，无需重复失效"),
    SHENG_XIAO_STAFF_IS_EXIST(111, "存在已生效的员工"),
    SHI_XIAO_STAFF_IS_EXIST(112, "存在已失效的员工"),

    STAFF_IS_ROLE_SHENG_XIAO(113, "角色已生效，无需重复生效"),

    STAFF_IS_ROLE_SHI_XIAO(114, "角色已失效，无需重复失效"),

    SHENG_XIAO_ROLE_IS_EXIST(115, "存在已生效的角色"),

    SHI_XIAO_ROLE_IS_EXIST(116, "存在已失效的角色"),

    DEPT_TYPE_NOT_EXIST(117, "您所查询的部门类型不存在");
    private final Integer code;
    private final String message;
}
